package cz.bernhard.playground.persistance.dao;

import java.util.List;

import javax.sql.DataSource;

public interface BaseDao<T, ID> {

	List<T> findAll(); 
	T findById(ID id);
	
	T deleteById(ID id);
	
	/**
	 * @param entityToSave
	 * @return true when successfully saved
	 */
	ID save(T entityToSave);
	
}
